package com.linln.modules.rate.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;


/**
 * @author : pengliang
 * @version V1.0
 * @Project: timo
 * @Package com.linln.modules.rate.domain
 * @Descriptio /**
 * @Project: timo
 * @Package com.linln.modules.rate.domain
 * @Description: TODO
 * @date Date : 2021年01月05日 14:10
 */

@TableName(value = "tbl_rate")
public class Rate {

    public Rate() {
    }

    public Rate(String rateId, Integer status) {
        this.rateId = rateId;
        this.status = status;
    }

    /**
     * 评论id
     */
    @TableId(value = "rate_id", type = IdType.UUID)
    private String rateId;
    /**
     * 评论id
     */
    @TableField(value = "ticket_id")
    private String ticketId;

    /**
     * 店铺id
     */
    @TableField(value = "shop_id")
    private String shopId;
    /**
     * 店铺名称
     */
    @TableField(value = "shop_name", exist = false)
    private String shopName;
    /**
     * 评论内容
     */
    @TableField(value = "rate_content")
    private String rateContent;

    /**
     * 评论时间
     */
    @TableField(value = "rate_date")
    private String rateDate;

    /**
     * 评论星数
     */
    @TableField(value = "rate_score")
    private Integer rateScore;

    /**
     * 精选标记 0不是  1是
     */
    @TableField(value = "select_sign")
    private Boolean selectSign;

    /**
     * 是否匿名 0不是  1是
     */
    @TableField(value = "is_anonymous")
    private Boolean isAnonymous;

    /**
     * 扩展字段
     */
    @TableField(value = "props")
    private String props;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 用户名称
     */
    @TableField(value = "user_name", exist = false)
    private String userName;
    /**
     * 用户头像
     */
    @TableField(value = "head_img", exist = false)
    private String headImg;
    /**
     * 状态
     */
    @TableField(value = "`status`")
    private Integer status;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 获取评论id
     *
     * @return rate_id - 评论id
     */
    public String getRateId() {
        return rateId;
    }

    /**
     * 设置评论id
     *
     * @param rateId 评论id
     */
    public void setRateId(String rateId) {
        this.rateId = rateId;
    }

    /**
     * 获取店铺id
     *
     * @return shop_id - 店铺id
     */
    public String getShopId() {
        return shopId;
    }

    /**
     * 设置店铺id
     *
     * @param shopId 店铺id
     */
    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getTicketId() {
        return ticketId;
    }

    public void setTicketId(String ticketId) {
        this.ticketId = ticketId;
    }

    public Boolean getIsAnonymous() {
        return isAnonymous;
    }

    public void setIsAnonymous(Boolean isAnonymous) {
        this.isAnonymous = isAnonymous;
    }

    /**
     * 获取评论内容
     *
     * @return rate_content - 评论内容
     */
    public String getRateContent() {
        return rateContent;
    }

    /**
     * 设置评论内容
     *
     * @param rateContent 评论内容
     */
    public void setRateContent(String rateContent) {
        this.rateContent = rateContent;
    }


    /**
     * 获取评论时间
     *
     * @return rate_date - 评论时间
     */
    public String getRateDate() {
        return rateDate;
    }

    /**
     * 设置评论时间
     *
     * @param rateDate 评论时间
     */
    public void setRateDate(String rateDate) {
        this.rateDate = rateDate;
    }

    /**
     * 获取评论星数
     *
     * @return rate_score - 评论星数
     */
    public Integer getRateScore() {
        return rateScore;
    }

    /**
     * 设置评论星数
     *
     * @param rateScore 评论星数
     */
    public void setRateScore(Integer rateScore) {
        this.rateScore = rateScore;
    }

    /**
     * 获取精选标记 0不是  1是
     *
     * @return select_sign - 精选标记 0不是  1是
     */
    public Boolean getSelectSign() {
        return selectSign;
    }

    /**
     * 设置精选标记 0不是  1是
     *
     * @param selectSign 精选标记 0不是  1是
     */
    public void setSelectSign(Boolean selectSign) {
        this.selectSign = selectSign;
    }

    /**
     * 获取扩展字段
     *
     * @return props - 扩展字段
     */
    public String getProps() {
        return props;
    }

    /**
     * 设置扩展字段
     *
     * @param props 扩展字段
     */
    public void setProps(String props) {
        this.props = props;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }
}
